#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int arr[3][5] = { 0 };
	int a = 0;
	
	for (a = 0; a <= 1; a++)
	{
		int b = 0;
		for (b = 0; b <= 2; b++)
		{
			int r = scanf("%d", &arr[a][b]);

		}
	}





	for (a = 0; a <= 2; a++)
	{
		int b = 0;
		for (b = 0; b <= 4; b++)
		{
			printf("%d  ", arr[a][b]);

		}
		printf("\n");

	}
	return 0;
}